import { S } from '../../s';
import { IPSAppView } from '../../app/view/ipsapp-view';
import { IPSPickupView } from './ipspickup-view';
import { PSValueItemEditorImpl } from './psvalue-item-editor-impl';

export class PSPickupViewImpl
  extends PSValueItemEditorImpl
  implements IPSPickupView
{
  get contextJOString(): string {
    return this.M.contextJOString;
  }

  get itemParamJO(): IModel {
    return this.M.itemParamJO;
  }

  get paramJOString(): string {
    return this.M.paramJOString;
  }

  protected pickuppsappview: IPSAppView;
  getPickupPSAppView(): IPSAppView | null {
    return (
      this.pickuppsappview ||
      (this.pickuppsappview = this.fillObjectModel(
        S._1e,
        this.M.getPickupPSAppView,
        S._316,
      ) as IPSAppView)
    );
  }

  get enablePickupView(): boolean {
    return this.M.enablePickupView;
  }
  get cls(): string {
    return 'PSPickupViewImpl';
  }
  instanceof(cls: string): boolean {
    if (cls == S._7 || cls == S._148 || cls == S._14d) return true;
    return super.instanceof(cls);
  }
}
